package com.alex.j2se.reference;

/**
 * Created by gaojun on 2017/11/15.
 */
public class IntegerEqual {

    public static void main(String[] args) {
        System.out.println(new IntObj().getI() == IntEnum.openplat.getCode());

        System.out.println(Integer.valueOf(2) == Integer.valueOf(2));
        System.out.println(Integer.valueOf(2) == new Integer(2));
        System.out.println(new Integer(2) == new Integer(2));

        System.out.println(Boolean.valueOf(true) == new Boolean(true));
        System.out.println(Boolean.valueOf(true) == new Boolean(true));
    }
}
